home *** CD-ROM | disk | FTP | other *** search
- -- HANS: The Hackable AirPort Network Seeker
- -- (For seeking out Hackable AirPort Networks)
- -- Copyright (C) 2001 Daniel Fox
-
- -- This program is free software; you can redistribute it and/or
- -- modify it under the terms of the GNU General Public License
- -- as published by the Free Software Foundation; either version 2
- -- of the License, or any later version.
-
- -- This program is distributed in the hope that it will be useful,
- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
- -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- -- GNU General Public License for more details.
-
- -- You should have received a copy of the GNU General Public License
- -- along with this program; if not, you can download it from:
- -- http://www.gnu.org/copyleft/gpl.html
-
- -- If you modify this program, please send a copy back to me: djfox@mac.com
-
- -- property idleTime : 1
-
- tell application "AirPort Scripting"
-
- repeat
- set rachel to scan true
- set numNets to (number of items in rachel as list) as integer
- set NetList to ""
-
- if (numNets > 0) then
- set i to 1
- repeat while (i ≤ numNets)
- set currentNet to (name of item i of rachel)
- set NetList to NetList & currentNet & ", "
- set i to (i + 1)
- end repeat
-
- set NetList to NetList as string
- set nll to (length of NetList as integer) - 2
- set NetList to (characters 1 through nll of NetList)
-
- tell application "Finder"
- -- say "AirPort, AirPort, AirPort"
- say "" & numNets & " networks are available: " & NetList
- end tell
- else
- tell application "Finder"
- say "There are no AirPort networks available. You stupid hacker"
- end tell
- -- "No Networks are available."
- -- "I found an encrypted AirPort Network"
- -- Ping network: Can I get on the 'net
-
- end if
- -- log NetList
- -- delay idleTime
- end repeat
- end tell